﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace test
{
    public class Program
    {
        public int adding(int first, int second)
        {
            return first + second;
        }

        public int addingWrong(int first, int second)
        {
            return first + second + 50;
        }

        static void Main()
        {
            Console.WriteLine("Testing Nunit");
        }
    }
    
    [TestFixture]
    public class ProgramTest
    {
        int first;
        int second;
        Program program;

        [SetUp]
        public void Init()
        {
            first = second = 1;
            program = new Program();
        }

        [Test]
        public void TestAdding()
        {
            Assert.AreEqual(2, program.adding(first, second));
        }

        [Test]
        public void TestAddingWrong()
        {
            Assert.AreEqual(2, program.addingWrong(first, second));
        }
    }
}
